package cn.kimming.wms.query;

import lombok.Getter;
import lombok.Setter;

public class SystemMenuQueryObject extends QueryObject{
	@Getter @Setter
	private Long parentId = -1L;
	@Getter @Setter
	private String parentSn;
	
	@Override
	protected void customizedQuery() {
		if (parentId > 0) {
			addCondition("obj.parent.id = ?", parentId);
		} else {
			addCondition("obj.parent is null");
		}
	}
}
